
<%@ page import="java.util.List" %>
<%@ page import="bid.dao.impl.UserRoleDaoImpl" %>
<%@ page import="bid.entity.UserRole" %>
<%@ page import="bid.dao.UserRoleDao" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户类型表</title>
</head>
<body>
<%
    UserRoleDao urDao = new UserRoleDaoImpl();
    List<UserRole> urDaos = urDao.findAll();
%>
<table border="1" cellpadding="0" cellspacing="0">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    <%
        for (UserRole ur : urDaos) {
    %>
    <tr>
        <td><%=ur.getId()%>
        </td>
        <td><%=ur.getName()%>
        </td>
        <td><%=ur.getRemark()%>
        </td>
        <td>
            <a onclick="return confirm('真的要删除码？')" href="./delUserRole.jsp?id=<%=ur.getId()%>">删除</a>
            <a href="./updateUserRole.jsp?id=<%=ur.getId()%>">修改</a>
        </td>
    </tr>
    <%}%>
</table>

</body>
</html>
